<?php
namespace Api\Model;
use Think\Model;
class CategoryModel extends Model {

    /**
     * @name 获取所有分类
     */
    public function getAll()
    {
        return $this->where("`status`=1")->field("id,name")->order("`display` DESC")->select();
    }
}